package cn.walls1717.wallsmall.common.constant.order;

import lombok.Getter;

/**
 * 订单状态枚举
 * 
 * @author walls1717
 * @since 2022/11/20 15:00
 **/
@Getter
public enum OrderStatusEnum {

    /** 待付款 */
    CREATE_NEW(0, "待付款"),
    /** 已付款 */
    PAYED(1, "已付款"),
    /** 已发货 */
    SENT(2, "已发货"),
    /** 已完成 */
    RECEIVED(3, "已完成"),
    /** 已取消 */
    CANCELLED(4, "已取消"),
    /** 售后中 */
    SERVICING(5, "售后中"),
    /** 售后完成 */
    SERVICED(6, "售后完成");

    private final Integer code;
    private final String msg;

    OrderStatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
